package com.city.semis.business.impl;

import com.alibaba.fastjson.JSONObject;
import com.city.semis.business.IRoleBusiness;
import com.city.semis.dao.RoleValueDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RoleBusinessImpl implements IRoleBusiness {
    @Resource
    RoleValueDao rvd;

    @Override
    public JSONObject getRoleList() {
        JSONObject jsonObj = new JSONObject();
        jsonObj.put("code", 0);
        jsonObj.put("msg", "成功");
        jsonObj.put("data", rvd.getRoleList());
        return jsonObj;
    }
}
